﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">  
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link href="css/login/login.css" rel="stylesheet" />
    <script src="https://cdn.bootcss.com/jquery/2.2.3/jquery.min.js"></script>
    <script src="js/ComFunJS.js?v=20180101"></script>
    <script type="text/javascript">
        $(function () {
            $(".content .con_right .left").click(function (e) {
                $(this).css({ "color": "#333333", "border-bottom": "2px solid #2e558e" });
                $(".content .con_right .right").css({ "color": "#999999", "border-bottom": "2px solid #dedede" });
                $(".content .con_right ul .con_r_left").css("display", "block");
                $(".content .con_right ul .con_r_right").css("display", "none");

            });
            $(".content .con_right .right").click(function (e) {
                $(this).css({ "color": "#333333", "border-bottom": "2px solid #2e558e" });
                $(".content .con_right .left").css({ "color": "#999999", "border-bottom": "2px solid #dedede" });
                $(".content .con_right ul .con_r_right").css("display", "block");
                $(".content .con_right ul .con_r_left").css("display", "none");
            });



            $('#btn_Login').click(function () {
                if ($.trim($('#userid').val()) == '') {
                    alert('请输入您的用户名');
                    return false;
                } else if ($.trim($('#pwd').val()) == '') {
                    alert('请输入密码');
                    return false;
                }
                var data = {
                    UserName: $.trim($('#userid').val()),
                    Password: $.trim($('#pwd').val())
                };

                $("#btn_Login").css("display", "none");
                $(".sui-loading").css("display", "inline");

                $.post("/adapi/lg/login", data, function (r) {
                    if (r.error == "") {
                        ComFunJS.saveToken(r.result);
                        window.location.replace("index.html");
                    } else {
                        $("#btn_Login").css("display", "block");
                        $(".sui-loading").css("display", "none");
                        alert(r.error);
                    }

                })
            });

        })
    </script>
    <title>后台登录</title>
</head>
<body style="overflow:hidden">
    <div class="pagewrap">
        <div class="main">
            <div class="header"></div>
            <div class="content">
            <div class="con_left"></div>
                <div class="con_right">
                    <div class="con_r_top"><a href="javascript:;" class="left" style="color: rgb(153, 153, 153); border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: rgb(222, 222, 222);">关注我们</a> <a href="javascript:;" class="right" style="color: rgb(51, 51, 51); border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: rgb(46, 85, 142);">登录管理</a></div>
                    <ul>
                        <li class="con_r_left" style="display: none;">
                            <div class="erweima">
                                <div class="qrcode">
                                    <div id="output" style="width: 100%; position: relative">
                                        <!--<img src="css/login/qrcode_for_gh_f72d961fdd49_430.jpg" style="width: 174px; height: 174px">-->
                                    </div>                                    
                                </div>
                             </div>
                            <div style="height: 70px">
                                <!--<p>芝麻校园 信息大全</p>-->
                            </div>
                        </li>
						
						
                        <li class="con_r_right" style="display: block;">

                 <div class="user">
                        <div><span class="user-icon"></span>
                            <input type="text" id="userid" name="userid" placeholder="输入账号" value="" maxlength="20">
					    </div>

                        <div><span class="mima-icon"></span>
                            <input type="password" id="pwd" name="pwd" placeholder="输入密码" value="" maxlength="20">
					    </div>
						
						                       <!-- <div><span class="yzmz-icon"></span>
                            <input id="vdcode" type="text" name="validate" placeholder="验证码" value="" maxlength="4" style=" width:150px;">　　
							
							<img style="cursor: pointer; margin-top:8px;" alt="看不清？点击更换" src="./网站后台管理系统_files/yanzhengma.jpg">
							
							
							
                        </div>	-->					
						                                
                   </div><br>
                            <div class="sui-loading loading-inline" style="margin-left:200px;display:none;"><i class="sui-icon icon-pc-loading"></i></div>
                        <button id="btn_Login" type="button">登 录</button>

                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

</body>
</html>
